*{
  margin: 0;
  padding: 0;
}

/* 粘性导航栏样式 */
.navbar {
  list-style-type: none;
  overflow: hidden;
  background-color: #E9B384;
  position: sticky;
  top: 0;
  height: 100px;
}

.navbar li {
  float: right;
  height: 100px;
}

.navbar li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  height: 100px;
  width: 100px;
  line-height: 80px;
  font-size: 25px;
}

.navbar li a:hover {
  background-color: #9BABB8;
}

/* 页面布局样式 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

#up0 {
  background-image: url(../img/dive-4219524_1280.png);
  background-size: cover;
  padding: 20px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;

}

#up0 img {
  width: 100%;
  height: 100%;
  position: relative;
  left: 20px;
}

.search-box {
  float: right;
  position: relative;
  right: 15%;
}

.search-box input[type="text"] {
  border-radius: 20px;
  padding: 8px 30px 8px 15px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
}

.search-box input[type="text"]:focus {
  border-color: dodgerblue;
}

.search-box button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.search-box input:hover{
  border: 2px solid dodgerblue;
  box-shadow: 1px 1px 10px #888888;
}

.search-box button:hover {
  color: dodgerblue;
  size: ledger;
}

.login {
  position: relative;
  left: 90%;
}

.login a {
  margin-left: 10px;
  text-decoration: none;
  color: white;
}

.login a:hover{
  color: dodgerblue;

}

.login::after {
  display: table;
  clear: both;
}

#up1 {
  position: sticky;
  top: 0;
  z-index: 1;
}

#mid {
  height: 1500px;
  background-image:url(../img/fish-5310727_1280.png);
  background-size:100% 100%;
  justify-content: center; /* 水平居中 */
  position: relative; /* 添加相对定位 */
}

#mid a{
  color: #000000;
  text-decoration: none;
}

.sticky-block {
  position: sticky;
  top: 180px;
  width: 300px;
  height: 300px;
  margin-top: 100px;
  background: rgba(255,250,205,0.6);
  overflow: hidden;
  border-radius: 60px;
}

.sticky-block img {
  height: 300px;
  width: 300px;
  box-shadow: 2px 2px 50px #888888;
  border-radius: 60px;

}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.3s ease-in, transform 0.5s ease-in;


}


.image-item {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  width: 800px;
  height: 180px;
  box-shadow: 2px 2px 50px #888888;
  border-radius: 50px;
  background: rgba(255,255,255,0.8);
}

.img-box{
  width: 250px;
  height: 160px;
  overflow: hidden;
  position: relative;
  left: 40px;

}

.image-item img {
  width: 100%;
  height: 100%;
  margin-right: 20px;
  transition: transform 0.6s ease-in-out;
}

.image-item img:hover {
  transform: scale(1.1);
}

.image-caption {
  text-align: center;
  position: relative;
  margin-left: 80px;
}

.image-caption h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.image-caption p {
  font-size: 16px;
  color: gray;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

#down {
  height: 200px;
  background-color: #f1f1f1;
  text-align: center;
  padding-top: 80px;
  background-image: linear-gradient(180deg,#FFFACD, #FFFACD);
}

.introduction{
  width: 60%;
  height: 120px;
  letter-spacing: 2px;
  padding: 10px;
  text-align: center;
  position: relative;
  left: 20%;
  top: -20%;
  line-height: 200%;
}


.footer{
  width: 100%;
  position: relative;
  bottom: -10px;
  height: 100px;
  background: #7C9D96;
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
}


